#pragma once
#include <d3dx9.h>
#include "String.h"
#include "../frame/frame.h"
#include "Common.h"

const UINT bias_factor = 4;

class Font
{
public:
							Font();
							~Font();

	void					OnInit( String fontType, UINT width, UINT height, UINT weight = FW_NORMAL, bool italic = false );
	void					OnRelease();

	void					DrawText( String text, RECT area, D3DCOLOR color, ID3DXSprite* sprite = NULL );
	void					DrawTextShadowed( String text, RECT area, D3DCOLOR color, ID3DXSprite* sprite = NULL );

private:
	ID3DXFont*				mFont;
	UINT					mBias;
};

namespace TGO
{
	Font&	UIFont();
	Font&	DialogFont();
}
